package org.come.control;

import org.come.Frame.NPCJfram;
import org.come.action.FromServerAction;
import org.come.bean.NpcInfoBean;
import org.come.bean.NpcMenuBean;
import org.come.bean.NpcSureMenuBean;
import org.come.until.ControlNpcXmlUntil;

public class KejuControl implements FromServerAction {
    public static String[] vs=null;
    public static NpcInfoBean npc;

    public void controlMessFromServer(String mes, String type){
        ControlNpcXmlUntil.setNpcmenubean(new NpcMenuBean());
        ControlNpcXmlUntil.setSureBean(new NpcSureMenuBean());
        ControlNpcXmlUntil.setType(npc.getNpctable().getNpctype());
        try {
            ControlNpcXmlUntil.GetXmlPath("npcMenu.xml");
        } catch (Exception e1) {
            // TODO Auto-generated catch block
            e1.printStackTrace();
        }
        mes=mes.substring(1,mes.length()-1);
        mes=mes.replace("\"","");
        vs=mes.split(",");
        NPCJfram.getNpcJfram().getNpcjpanel().keju();

//        NPCJfram.getNpcJfram().getNpcjpanel().npc(ControlNpcXmlUntil.getNpcmenubean(), npc);

    }
}
